const a = function (
  _01,
  _02,
  { params = {} },
  { dc: { open, reload, setModal, close } }
) {
  const transfer = params;
  const layout = { id: "1788812530857660417" };
  const modal = {
    title: "新增批量审核",
    width: "75vw",
    minHeight: document.body.clientHeight * 0.7,
    defaultFullscreen: false,
    destroyOnClose: true,
    maskClosable: false,
    centered: true,
    open: true,
    showOkBtn: false,
    showCancelBtn: true,
  };
  const inner = {
    onOk: async function (
      _,
      { memory },
      { xe: { get }, dc: { http, message } }
    ) {
      const checkList = [
        ...get(memory, "checkListBonus", []),
        ...get(memory, "checkListBx", []),
      ];
      if (!checkList.length) return message.info("请至少选择一条数据");
      setModal({ confirmLoading: true });
      try {
        const res = await http.post(
          {
            url: "/ypxy/transferBatch/submit",
            data: { list: checkList, submitName: "" },
          },
          { isTransformResponse: false }
        );
        setModal({ confirmLoading: false });
        if (res.code !== 200) {
          message.error(res.msg || res.message || "新增批量审核出错");
        } else {
          message.success("新增批量审核成功");
          close();
          reload();
        }
      } catch (error) {
        setModal({ confirmLoading: false });
      }
    },
  };
  open({ inner, layout, modal, transfer });
};
